
/**
 * AppleIIGo
 * DigiSector-65 class
 * (C) 2008 by Marc S. Ressl (mressl@umich.edu)
 * Released under the GPL
 */

#ifndef DIGISECTOR65_H
#define DIGISECTOR65_H

#define DIGISECTOR65_ROM_BYTENUM 0x400

#include "SlotDevice.h"

class DigiSector65 : public SlotDevice {
public:
	DigiSector65(class Motherboard * motherboard, char * slotDeviceName);
	
	void onMemoryRequested();
	void onMemoryAllocated();
	void onResetAsserted(bool isRestart);
	
	void writeIo(UINT16 address, UINT8 value);
	UINT8 readIo(UINT16 address);
	
	UINT8 readMemory(UINT16 address);
	
private:
	UINT32 romMemoryOffset;
	UINT8 * romMemory;
	UINT32 romBankOffset;
};

#endif
